/*
 * BanBu_ChatSmileCell
 * @description 本文件提供聊天界面对话界面的super cell
 * @package
 * @author 		***
 * @copyright
 * @version 		1.0
 * @description 本文件提供聊天界面对话界面的super cell
 */

#import <UIKit/UIKit.h>
#import "BanBu_ChatCellAPI.h"

@protocol BanBu_ChatDelegate;

@interface BanBu_ChatSmileCell : UITableViewCell

@property(nonatomic, assign)id<BanBu_ChatDelegate>delegate;

@property (retain, nonatomic) UIImageView * bkView;

//@property (retain, nonatomic) UIImageView * verifyView;

@property (assign, nonatomic) float bkViewWidth;
@property (assign, nonatomic) MediaStatus mediastatus;  //消息的上传、下载状态
@property (retain, nonatomic) NSString * content;       //本消息的内容
@property (assign, nonatomic) NSInteger bubbleID;       //气泡在气泡名字字典（MyAppDataManager.bubbleNameDic）对应的数据，不是真正的ID
@property (assign, nonatomic) ChatStatus cellChatStatus;//用于判断单击、长按事件，不同状态做不同处理
@property (retain, nonatomic) NSString * chatid;        //消息id
@property (assign, nonatomic) CGFloat height;           //cell的高度
@property (retain, nonatomic) NSString * userid;

@property (nonatomic, assign) ChatCellType type;//@"text",@"image",@"location",@"sound",@"emi",@"hints",@"video",@"magicGif",@"specialApp"


//消息状态（送达、失败、发送中、已读、无）
@property(nonatomic, retain)UILabel *statusLabel;
@property(nonatomic, assign)ChatStatus status;
@property(nonatomic, assign)int statuss;
@property(nonatomic, retain)UIImageView *statusView;
- (void)setStatus:(ChatStatus)status;

@property (nonatomic, assign)BOOL atLeft;
//头像
@property (nonatomic, retain)UIImageView *avatar;

- (void)setAvatarImage:(NSString *)imageStr;

//监控来自哪里（涂鸦、破冰语、不文明用语）
@property(nonatomic, retain)UILabel *fromLabel;
@property(nonatomic, assign)BOOL showFrom;
@property(nonatomic, retain)NSString *from;
-(void)setShowFromFrame:(ChatMsgType)type;

//时间、距离
@property(nonatomic, retain)UILabel *timeLabel;
@property(nonatomic, retain)UILabel *demeterLabel;
@property (retain, nonatomic) UIView * bgView;//时间、距离的背景
@property(nonatomic, assign)BOOL showTime;

//设置消息时间和距离
-(void)setMsgTime:(BOOL)showTime withTime:(NSString *)time withDmeter:(NSString *)dmeter;

//设置cell的各种信息
-(void)setChatCellInfo:(NSDictionary *)amsg;
@end

@protocol BanBu_ChatDelegate <NSObject>

//查看大图
-(void)MakeBigMap;

//长按、单击本行时消息响应
-(void)menuShow:(UIView *)sender tableCell:(BanBu_ChatSmileCell *)sendert;

//加好友
-(void)didGetInfo:(NSString *)info;

//展示阅后即焚图片、视频
-(void)showSnapImageTabeCell:(BanBu_ChatSmileCell *)sendert;

//取消展示阅后即焚图片、视频
-(void)dismissSnapImageTabeCell:(BanBu_ChatSmileCell *)sendert;

-(void)removeRow:(BanBu_ChatSmileCell *)sendert;

@optional
//点击FromLabel后相应的处理
-(void)pushTheNextViewController:(NSString *)indext;

//点击对方的头像
-(void)pushnext;

//点击自己的头像
-(void)pushself;
@end
